﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="DayToDayManagement_ProductCommentManagement" Codebehind="ProductCommentManagement.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../Include/JS/calendar.js"></script>
    <script type="text/javascript" src="../Include/JS/PopupCalendar.js"></script>
    <script type="text/javascript" src="../Include/Js/OpenWindow.js"></script>
    <script type="text/javascript">
       function setValue(p)
       {
            var products = p.split("|");
            var id= "";
            for(var i=0;i<products.length;i++)
            {
                if(i+1==products.length)
                {
                    var product = products[i].split(",");
                    
                    if(product.length>1)
                    {
                        id = id + "'" + product[0] + "'";
                    }
                }
                else
                {
                    var product = products[i].split(",");
                    
                    if(product.length>1)
                    {
                        id = id + "'" + product[0] + "',";
                    }
                }
            }
            document.getElementById("hidProduct").value=id;
       }    
       function setVIPValue(p)
       {
            var products = p.split("|");
            var id= "";
            for(var i=0;i<products.length;i++)
            {
                if(i+1==products.length)
                {
                    var product = products[i].split(" ");
                    
                    if(product.length>1)
                    {
                        id = id + "'" + product[0] + "'";
                    }
                }
                else
                {
                    var product = products[i].split(" ");
                    
                    if(product.length>1)
                    {
                        id = id + "'" + product[0] + "',";
                    }
                }
            }
            document.getElementById("hidUser").value=id;
       }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
        <h2>商品评价统计</h2>
        <div class="menu_bg">
            <input id="btnGetProduct" type="button" class="input_button1" value="选择商品" onclick="SearchProduct('../');" />
            <input id="btnGetUser" type="button" class="input_button1" value="选择客户" onclick="BatchSelectingVip('../');" />&nbsp;
            时间由<asp:TextBox ID="txtStartDate" runat="server" OnClick="setday(this)"></asp:TextBox>
        至<asp:TextBox ID="txtEndDate" runat="server" OnClick="setday(this)"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" CssClass="input_button" Text="查找" OnClick="btnSearch_Click" />
            <input id="hidProduct" runat="server" type="hidden" />
            <input id="hidUser" runat="server" type="hidden" />
        </div>
        <div class="juli"><asp:GridView ID="grvComment" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <EditRowStyle BackColor="#999999" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView></div>
        <div class="juli"><webdiyer:aspnetpager id="AspNetPager1" 
        runat="server"
       NumericButtonCount="8" 
       ShowCustomInfoSection="left" 
       PagingButtonSpacing="0"
       ShowInputBox="always" 
       HorizontalAlign="right" 
       SubmitButtonText="转到" 
       NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged"></webdiyer:aspnetpager></div>
    </div>
    </form>
</body>
</html>
